# $Id: PKGBUILD 166977 2012-09-24 04:57:10Z bisson $
# Contributor: damir <damir@archlinux.org>
# Maintainer: Gaetan Bisson <bisson@archlinux.org

pkgname=scim-uim
pkgver=0.2.0
pkgrel=6
pkgdesc='UIM bridging input engine for SCIM'
url='http://www.scim-im.org/'
license=('GPL')
options=('!libtool')
depends=('scim' 'uim')
arch=('i686' 'x86_64')
source=("http://downloads.sourceforge.net/sourceforge/scim/${pkgname}-${pkgver}.tar.gz"
        'fix-gcc43-build.patch'
        'uim-1.5.5-header.patch')
sha1sums=('456621d5969b6552c3c33c83cf295aa4134fff0a'
          'a9d67946f956d0572c73065e2b4b268bfdf149e3'
          '3b083260910f7855b5446960ab1203c052f4b56c')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	patch -p1 -i ../fix-gcc43-build.patch
	patch -p1 -i ../uim-1.5.5-header.patch
	./configure --prefix=/usr --sysconfdir=/etc --disable-static
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
}
